$OpenBSD: patch-https_c,v 1.5 2016/11/30 19:42:15 fcambus Exp $
--- https.c.orig	Sat Nov 19 13:52:07 2016
+++ https.c	Mon Nov 28 22:16:21 2016
@@ -88,6 +88,11 @@ links_ssl *getSSL(void)
 					RAND_write_file(cast_const_char f_randfile);
 			}
 		}
+#elif defined(HAVE_RAND_FILE_NAME) && defined(HAVE_RAND_LOAD_FILE) && defined(HAVE_RAND_WRITE_FILE)
+		unsigned char f_randfile[PATH_MAX];
+		const unsigned char *f = (const unsigned char *)RAND_file_name(cast_char f_randfile, sizeof(f_randfile));
+		if (RAND_load_file(cast_const_char f_randfile, -1))
+			RAND_write_file(cast_const_char f_randfile);
 #endif
 
 #if defined(HAVE_RAND_ADD)
